package rgs.sphere.jdbc.algorithm;

import org.apache.shardingsphere.api.sharding.hint.HintShardingAlgorithm;
import org.apache.shardingsphere.api.sharding.hint.HintShardingValue;

import java.util.Arrays;
import java.util.Collection;

/**
 * @program: rgs-study0project
 * @description: 只想查寻某个数据库 某个数据表
 * @author: Mr.Ren
 * @create: 2023-11-12 22:42
 **/
public class MyHintDBAlgorithm implements HintShardingAlgorithm<Integer> {
    @Override
    public Collection<String> doSharding(Collection<String> collection, HintShardingValue<Integer> hintShardingValue) {
        return Arrays.asList("m1");
    }
}
